﻿@model List<ASPMVC_first_app.Models.UserModel>
@{
    ViewBag.Title = "IndexList";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>IndexList</h2>
<table class="table">
    <tr>
        <td><b>Id</b></td>
        <td><b>FirstName</b></td>
        <td><b>LastName</b></td>
        <td><b>Age</b></td>
    </tr>
    @foreach (var item in Model)
    {
        <tr>
            <td>@item.Id</td>
            <td>@item.FirstName</td>
            <td>@item.LastName</td>
            <td>@item.Age</td>
        </tr>
    }
</table>
